package com.zx.lc.controller;

import com.zx.lc.rag._1_RagSimpleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rag")
public class RagController {

    @Autowired
    private _1_RagSimpleService ragSimpleService;

    //http://127.0.0.1:8080/rag/simple?message=敏捷开发的面试题有啥？
    @GetMapping("/simple")
    public String chat(@RequestParam(value = "message", defaultValue = "devops的面试题有什么？") String message) {
        //return ragSimpleService.chat(message);
        return "";
    }
}
